<?php
	$this->load->helper('url');
	

?>

<html>
<head>
    	<title>ICS SAIS</title>
        
<link href="<?=base_url();?>style/design.css" rel="stylesheet" type="text/css" />

</head>
    
<body>
   	<div id="cont">
        	<div id="header_slim">
            	<div id="header_main">
                	<div id="mhleft">
                    </div>
                    
                    <div id="mhcenter">
                    	<img src="<?=base_url();?>style/ics_logo_blue.png" id="logo"/>
                      <div id="label_sais">
                        	<div id="border_label">	</div>
                        <div id="label"><p>Students'Academic
Information System</p></div>
                      </div>
                  </div>
                    
                    <div id="mhright">
                    </div>
                </div>
   
                <div id="bottomhead">
                	<div id="bhleft_slim">
                    </div>
                    <div id="menu_bar_slim">
                    	<!--menu -->
						<?php
							$this->load->helper('url');
						?>
                        <div class="header_link">
                        	<?php echo anchor('home/student_checklist','<h>Checklist</h>'); ?>
                        </div>
                  		
                  		<ul id="nav">
                        	<li>
                                <div class="header_link">
                                    <a><h>Advisers</h></a>
                                </div>
                                <ul>
                                	<div id="drop_down">
										
                                        <li><?php echo anchor('home/student_advisers/sp', '<h>SP Advisers</h>'); ?></li>
                                        <li><?php echo anchor('home/student_advisers/reg','<h>Registration Advisers</h>'); ?></li>
                                    </div>
                                </ul>
                                
                           	</li>
                        
                        </ul>
                        
                        
                        <div class="header_link">
                        	<?php	echo anchor('home/student_messages', '<h>Messages</h>'); ?>
                        </div>
                        <div class="header_link">
                        	<?php echo anchor('home/student_univcases','<h>Cases</h>'); ?>
                        </div>
						<div class="header_link">
                        	<?php echo anchor('home/student_subjects','<h>Subjects</h>'); ?>
                        </div>
						<div class="header_link_right header_link">
                        	<?php echo anchor('home/student_info','<h>Basic Info</h>'); ?>
                        </div>
                    </div>
                </div>
            </div>
            
      <div id="body_user">
      	<div id="body_border_user">	<!--light blue border-->
        </div>
		
		<div id="acad_hist">
			<?php
				foreach($student as $row){
			?>
			<table>
				<tr>
					<td colspan=1><h2 class="info_text">Semester</h2></td>
					<td colspan=1><h2 class="info_text">GWA</h2></td>
				</tr>
				<?php 
				foreach($student as $row){
				?>
				
				<tr>
					<td colspan=1><p class="info_text"><?php echo $row->Semester; ?></p></td>
					<td colspan=1><p class="info_text"><?php echo $row->Grade; ?></p></td>
				</tr>
				
				<?php
					}
				?>		
			</table>
			<?php
			}
				if($student == null){
			?>
				<div id="no_rec">
					<br />
					<h2 class="info_text">No records of your university cases!</h2><br />
					<h3 class="info_text">Posible reasons are:</h3>
					<div id="no_rec_reason">
						<ul>
							<li>
								<p class="info_text">&nbsp;&#8226;&nbsp;&nbsp;This is your first semester at the university.</p>
							</li>
							<li>
								<p class="info_text">&nbsp;&#8226;&nbsp;&nbsp;The data are not yet encoded and stored in our databases.</p>
							</li>
							<li>
								<p class="info_text">&nbsp;&#8226;&nbsp;&nbsp;This site doesn't like you.</p>
							</li>
						<ul>
					</div>
				</div>
			<?php	
			}
			?>
		</div>
      </div>
	  <div id="footer">
			<pre class="info_text">Created by parehiville. CMSC128 2nd Semester SY 2012-2013</pre>
	  </div>
	</div>
</body>